package jp.ac.segakuen;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class MailListTable {
	
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;
    

    @Persistent
    private String address;

    @Persistent
    private String enableFlag;
    
    public MailListTable(String address,String enableFlag){
    	this.address = address;
    	this.enableFlag = enableFlag;	
    }

    public String getAddress(){
    	return this.address;
    }
    
    public String getEnableFlag(){
    	return this.enableFlag;
    }
    
    void setAddress(String address){
    	this.address=address;
    }
    
    void setEnableFlag(String enableflag){
    	this.enableFlag = enableflag;
    }
    
    public Long getId() {
        return id;
    }
    public String getStringId(){
    	return Long.toString(id);
    }
}
